import { createRouter, createWebHistory } from "vue-router";
import Home from "../views/Home.vue";
// import Moer from "../views/Moer.vue";

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
  },
  {
    path: "/about",
    name: "About",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/About.vue"),
  },
  {
    path: "/smart",
    name: "smart",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "@/components/smart.vue"),
  },
  {
    path: "/flashbuy",
    name: "FlashBuy",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route 
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "flashbuy" */ "../views/FlashBuy.vue"),
  },
  {
    path: "/Moer",
    name: "Moer",
    component: () =>
      import("../views/Moer.vue"),
  },
  {
    path: "/phone",
    name: "phone",
    component: () =>
      import("../views/phone.vue"),
  },
  {
    path: "/phoneshop",
    name: "phoneshop",
    component: () =>
      import("../views/phoneshop.vue"),
  },
  {
    path: "/com",
    name: "com",
    component: () =>
      import("../views/com.vue"),
  },
  {
    path: "/watch",
    name: "watch",
    component: () =>
      import("../views/watch.vue"),
  },
  {
    path: "/login",
    name: "login",
    component: () =>
      import("../views/login.vue"),
  },

  {
    path: "/PPingCart",
    name: "PPingCart",
    component: () =>
      import("../views/PPingCart.vue"),
  },
 
];
const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
